/********************************************************************
 * PROJECT: CSAIR ROST PROJECT.
 * SUPPLIER: FOREVER OPEN SOURCE SOFTWARE INC.
 ********************************************************************
 * FILE: GanttRange.java
 * (C) Copyright Foliage Team 2013, All Rights Reserved.
 ********************************************************************/
package org.foliage.rcp.ui.widgets;

import java.util.Calendar;

import org.eclipse.swt.SWT;
import org.eclipse.swt.graphics.Rectangle;
import org.eclipse.swt.widgets.Item;

public class GanttRange extends Item {

	// ----------------------------------------------- 

	private Calendar lowerCalendar;

	private Calendar upperCalendar;

	private Rectangle bounds;

	// ----------------------------------------------- 

	public GanttRange(Gantt parent) {
		this(parent, null, null);
	}

	public GanttRange(Gantt parent, Calendar lowerLimit, Calendar upperLimit) {
		super(parent, SWT.NONE);
		this.lowerCalendar = lowerLimit;
		this.upperCalendar = upperLimit;
	}
	
	// ----------------------------------------------- 
	
	public Calendar getLowerCalendar() {
		return lowerCalendar;
	}

	public void setLowerCalendar(Calendar lowerCalendar) {
		this.lowerCalendar = lowerCalendar;
	}

	public Calendar getUpperCalendar() {
		return upperCalendar;
	}

	public void setUpperCalendar(Calendar upperCalendar) {
		this.upperCalendar = upperCalendar;
	}

	public Rectangle getBounds() {
		return bounds;
	}

	public void setBounds(Rectangle bounds) {
		this.bounds = bounds;
	}

}
